#ifndef SUBORDERROLE_H
#define SUBORDERROLE_H

#include"../orderRoleBase.h"

//减法优惠器，全局减法器
class SubOderRole:public OrderRoleBase
{
public:
    SubOderRole(){
        type=CLASS_SUBORDERROLE;
    }

    virtual double priceAdjustment(vector<SaleBase*> sales,double curPrice)
    {
        Q_UNUSED(sales);
        return curPrice-value;
    }

    virtual void selectOne(){};

    virtual void del(){};

    virtual void insert(){};
};



#endif // SUBORDERROLE_H
